# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=xca
pkgver=2.3.0
pkgrel=0
pkgdesc="X Certificate and Key Management"
url="https://hohnstaedt.de/xca/"
arch="all"
license="BSD-3-Clause"
options="!check" # no tests
depends="qt5-qtbase-sqlite"
makedepends="qt5-qttools-dev openssl-dev libtool"
subpackages="$pkgname-doc"
source="https://github.com/chris2511/xca/releases/download/RELEASE.$pkgver/xca-$pkgver.tar.gz"
builddir="$srcdir/"xca-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="35522aa308e1022a739f3255f13fcf63f481000f9b7411027a009a185e33ddceeb5cf9b55406a4899d2393c7e5ace10354ff24b3b2b0c3045d110f679756b0b8  xca-2.3.0.tar.gz"
